-- GENERATED SPELL FOR [Thunderlord Grunt] --


function spell0_19449(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19449', 539, 1)
end

function spell1_19449(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_19449', 652, 1)
end

function Sorts_19449(pUnit, Event)
local choix_sorts_19449 = math.random(0, 1)
if choix_sorts_19449 == 0 then
pUnit:RegisterEvent('spell0_19449', 1, 1)
end
if choix_sorts_19449 == 1 then
pUnit:RegisterEvent('spell1_19449', 1, 1)
end
end

function mob19449_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19449', math.random(1500, 3000), 1)
end

function mob19449_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19449_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19449_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19449, 1, 'mob19449_Action')
RegisterUnitEvent(19449, 2, 'mob19449_Leave')
RegisterUnitEvent(19449, 3, 'mob19449_Kill')
RegisterUnitEvent(19449, 4, 'mob19449_Die')
